/**********************************************************
    COPYRIGHT
        KND, Inc. (c) 2011
    CLASS NAME
        platform_adc.h
    DEPENDENCY

    HISTORY
		09/17/2011, created by Guangxing Liu
**********************************************************/
#ifndef PLATFORM_ADC_H
#define PLATFORM_ADC_H

#define ADC_DEVICE           	 "ADC"

#define platform_adc_app_call_device_op_adcinit    	         "0_adcinit"
#define platform_adc_app_call_device_op_getadcvalue    	"1_getadcvalue"
#define platform_adc_app_call_device_op_adcconfig          "2_adcconfig"

typedef enum{
	Platform_Adc_App_Call_None = 0,
	Platform_Adc_App_Call_Adc_Init,
	Platform_Adc_App_Call_Adc_Getadcvalue,
	Platform_Adc_App_Call_Adc_Config
	
}platform_adc_device_opt;

typedef struct _platform_adc_app_call_
{
	platform_adc_device_opt iOpt;
	
}platform_adc_app_call;


typedef struct _platform_adc_config_
{
 	unsigned char channel;
	unsigned char channel_intr;
	unsigned int rate;

}platform_adc_config;


typedef struct _platform_adc_value_
{
 	unsigned char channel;
	unsigned int value;

}platform_adc_value;

enum{	
	ADC_CHANNEL0,
	ADC_CHANNEL1,
	ADC_CHANNEL2,
	ADC_CHANNEL3,
	ADC_CHANNEL4,
	ADC_CHANNEL5,
	ADC_CHANNEL6,
	ADC_CHANNEL7,
	
};






















#endif






















